<?php
//ltrim(string $string,string $charachers="\n\r\t\v\x00"):string
//删除字符串开头的空白字符（或其他字符）

$text = "\t\rapplecarrot";
$sanatizie = ltrim($text);
var_dump($sanatizie);
$binary = "\x09Example string\x0A";
$clean = ltrim($binary, "\x00..\x1F");
var_dump($clean);
